﻿#include "startiterm.h"

StartIterm::StartIterm(QObject *parent)
    : QObject{parent}
{
    pix.load("star.png");
}
QRectF StartIterm::boundingRect() const
{
    return QRectF(-pix.width()/2,-pix.height()/2,pix.width(),pix.height());
}
void StartIterm::paint(QPainter *painter,const QStyleOptionGraphicsItem *option,QWidget *widget)
{
    painter->drawPixmap(boundingRect().topLeft(),pix);
}
